package com.duobaoyu.dby.supply.biz.client.resource.bean.dto;

import com.duobaoyu.dby.common.core.validator.groups.Add;
import com.duobaoyu.dby.common.core.validator.groups.Edit;
import com.duobaoyu.dby.common.mybatis.support.Query;
import com.duobaoyu.dby.supply.biz.client.resource.bean.bo.ParamConfigBO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @auther tianxiaoqiang
 * @describe 渠道配置表入参类dto
 * @since 2022-06-22 15:19:45
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "ChannelConfig对象", description = "渠道配置表")
@EqualsAndHashCode(callSuper = true)
public class ChannelConfigBizDTO extends Query implements Serializable {


	private static final long serialVersionUID = -6146006331497253110L;
	/**
	 * 渠道配置id
	 */
	@NotNull(message = "渠道编号不能为空", groups = {Edit.class})
	private Long id;
	/**
	 * 渠道编号
	 */
	@ApiModelProperty(value = "渠道编号")
	@NotBlank(message = "渠道编号不能为空", groups = {Add.class, Edit.class})
	private String channelCode;
	/**
	 * 渠道名称
	 */
	@ApiModelProperty(value = "渠道名称")
	@NotBlank(message = "渠道名称不能为空", groups = {Add.class, Edit.class})
	private String channelName;
	/**
	 * 接口配置参数,json字符串
	 */
	@ApiModelProperty(value = "接口配置参数,json字符串")
	@Valid
	private List<ParamConfigBO> ifParams;
	/**
	 * 状态 0->停用; 1->正常
	 */
	@ApiModelProperty(value = "状态 0->停用; 1->正常")
	private Integer status;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	private String remark;
}